USE [Grupo2b]
GO

/****** Object:  Table [dbo].[Area_Comun]    Script Date: 08/02/2011 20:02:46 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Area_Comun](
	[CodAreaComun] [varchar](20) NOT NULL,
	[Tex_Tipo] [varchar](300) NOT NULL,
	[Tex_Ubicacion] [varchar](50) NULL,
	[Num_Capacidad] [numeric](18, 0) NULL,
	[Tex_Estado] [varchar](50) NOT NULL,
 CONSTRAINT [PK_Area_Comunn] PRIMARY KEY CLUSTERED 
(
	[CodAreaComun] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO


USE [Grupo2b]
GO

/****** Object:  Table [dbo].[Cuota_Pago]    Script Date: 08/02/2011 20:03:18 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Cuota_Pago](
	[CodDocumento] [varchar](20) NOT NULL,
	[CodVivienda] [varchar](20) NOT NULL,
	[Tex_Periodo] [varchar](20) NOT NULL,
	[Num_Importe] [numeric](18, 2) NULL,
	[Fec_Vencimiento] [date] NULL,
	[Tex_Tipo_Pago] [varchar](300) NULL,
	[Fec_Operacion] [date] NULL,
	[Num_Operacion] [varchar](300) NULL,
	[Tex_Estado] [varchar](300) NOT NULL,
 CONSTRAINT [PK_Cuota_Pago] PRIMARY KEY CLUSTERED 
(
	[CodDocumento] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO


USE [Grupo2b]
GO

/****** Object:  Table [dbo].[Reserva]    Script Date: 08/02/2011 20:03:35 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Reserva](
	[CodReserva] [varchar](20) NOT NULL,
	[CodResidente] [varchar](20) NOT NULL,
	[Fec_Reserva] [date] NULL,
	[Num_Personas] [numeric](18, 0) NULL,
	[Tex_Comentario] [text] NULL,
	[CodAreaComun] [varchar](20) NOT NULL,
 CONSTRAINT [PK_Reservaa] PRIMARY KEY CLUSTERED 
(
	[CodReserva] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO


USE [Grupo2b]
GO

/****** Object:  Table [dbo].[Residente]    Script Date: 08/02/2011 20:03:53 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Residente](
	[CodResidente] [varchar](20) NOT NULL,
	[Nom_Residente] [varchar](300) NULL,
	[Fec_Nacimiento] [date] NULL,
	[Tex_Correo] [varchar](300) NULL,
	[Tex_Clave] [varchar](50) NOT NULL,
	[Tex_Dni] [varchar](20) NULL,
	[Tex_Tipo_Residente] [varchar](300) NOT NULL,
 CONSTRAINT [PK_Residente] PRIMARY KEY CLUSTERED 
(
	[CodResidente] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO


USE [Grupo2b]
GO

/****** Object:  Table [dbo].[Vivienda]    Script Date: 08/02/2011 20:04:07 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[Vivienda](
	[CodVivienda] [varchar](20) NOT NULL,
	[CodResidente] [varchar](20) NOT NULL,
	[Tex_Ubicacion] [varchar](50) NULL,
	[Tex_Numero] [varchar](50) NULL,
	[Tex_Metraje] [varchar](50) NULL,
	[Tex_Tipo] [varchar](300) NOT NULL,
 CONSTRAINT [PK_Viviendaaa] PRIMARY KEY CLUSTERED 
(
	[CodVivienda] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO


